import { must } from "../../core/logic";
import { Parameter } from "./Parameter";
class Config extends Parameter {
    constructor(opts = {}) {
        super(opts);
        this.value = must(opts.value);
        this.state=true;
        this.isConfig=true;
    }
    set value(v) {
        this._value = v;
        return this;
    }
    get value() {
        return this._value;
    }
    destroy(){
        if(this.watchers.length<=0){
            this.value=null;
            return true;
        }
        return false;
    }
} 
export {Config} 
